﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Widgetsphere.Core.DataAccess
{
	public interface IRuleViolation
	{
		string Message { get; }
	}

	public class RuleViolation : IRuleViolation
	{
		public string Message { get; protected set; }

		public RuleViolation(string message)
		{
			this.Message = message;			
		}

	}

	public class FieldRuleViolation : RuleViolation
	{
		public Enum Property { get; private set; }

		public FieldRuleViolation(string message, Enum property)
			: base(message)
		{			
			this.Property = property;
		}

	}

}
